﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLyNhaSach.Report;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;

namespace QuanLyNhaSach.Report
{
    public partial class frmRP_BC_CongNo : Form
    {
        public frmRP_BC_CongNo()
        {
            InitializeComponent();
        }
        public DateTime TuNgay;
        public DateTime DenNgay;
        public string MaNCC;
        public string MaKH;
        public bool TrangThaiKH;
        public string ChuyenTienThanhChu = "";
        private void frmRP_BC_CongNo_Load(object sender, EventArgs e)
        {
            RP_BC_CongNo congNo = new RP_BC_CongNo();

            congNo.SetParameterValue("@TuNgay", TuNgay);
            congNo.SetParameterValue("@DenNgay", DenNgay);
            congNo.SetParameterValue("@MaNCC", MaNCC);
            congNo.SetParameterValue("@MaKH", MaKH);
            congNo.SetParameterValue("@TrangThaiKH", TrangThaiKH);
            congNo.SetParameterValue("ChuyenTienThanhChu", ChuyenTienThanhChu);
            crystalReportViewer1.ReportSource = congNo;
            crystalReportViewer1.Refresh();
        }
    }
}
